package com.cqndt.disaster.device.service.impl;

import java.io.File;
import java.util.List;
import org.springframework.stereotype.Service;
import com.cqndt.disaster.device.domain.TabTwoRound;
import com.cqndt.disaster.device.dao.TabTwoRoundMapper;
import org.springframework.beans.factory.annotation.Value;
import com.cqndt.disaster.device.service.TabTwoRoundService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author lgb
 * @date 2020-8-31
 * @说明 获取全景图
 **/
@Service
public class TabTwoRoundServiceImpl implements TabTwoRoundService {
    
	@Autowired
    private TabTwoRoundMapper tabTwoRoundMapper;
    
    @Value("${file-ip}")
    private String fileIp;
    
    @Override
    public List<TabTwoRound> selectByRelationNo(String relationNo,String modelType){
        List<TabTwoRound> list = tabTwoRoundMapper.selectByRelationNo(relationNo,modelType);
        for (TabTwoRound round:list) {
            round.setUrl(fileIp+ File.separator+round.getUrl());
        }
        return list;
    }
}
